package com.group3.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("live_message")
public class LiveMessage {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long liveId;        // 直播间ID
    private Long userId;       // 用户ID
    private String userName;   // 用户名
    private String content;    // 消息内容
    private Integer type;      // 消息类型: 0-弹幕, 1-点赞, 2-礼物, 3-评论
    private LocalDateTime createTime;
}
